package com.chat.mapper;

import com.chat.pojo.User;
import com.chat.pojo.UserInfo;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

public interface UserMapper {

    // 插入
    int addUser(User user);

    // 查询
    User selectUser(User user);


    // 查询好友
    UserInfo findUserByUsername(String username);


    Integer selectUserIdByUsername(String username);

    UserInfo getUserById(int userId);
}
